package com.itlong.cloud.utils.picture;

import java.awt.*;

public class LogoConfig {
	// logo默认边框颜色  
    public static final Color DEFAULT_BORDERCOLOR = Color.WHITE;  
    // logo默认边框宽度  
    public static final int DEFAULT_BORDER = 2;  
    // logo大小默认为照片的1/5  
    public static final int DEFAULT_LOGOPART = 5;  
   
    private  int border = DEFAULT_BORDER;  
    private  Color borderColor;  
    private  int logoPart;  
   
    /** 
     * Creates a default config with on color {@link #} and off color
     * {@link #}, generating normal black-on-white barcodes.
     */  
    public LogoConfig()  
    {  
        this(DEFAULT_BORDERCOLOR, DEFAULT_LOGOPART);
        //this.borderColor = DEFAULT_BORDERCOLOR;
        //this.logoPart = DEFAULT_LOGOPART;
    }  
   
    public LogoConfig(Color borderColor, int logoPart)  
    {  
        this.borderColor = borderColor;  
        this.logoPart = logoPart;  
    }  
   
    public Color getBorderColor()  
    {  
        return borderColor;  
    }  
   
    public int getBorder()  
    {  
        return border;  
    }  
   
    public int getLogoPart()  
    {  
        return logoPart;  
    }  
}
